package com.exchange.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 用户角色信息表(SysUserRole)实体类
 *
 * @author makejava
 * @since 2020-10-11 15:22:29
 */
@Component
@TableName("sys_user_role")
public class SysUserRole implements Serializable {
    private static final long serialVersionUID = 320642589891966329L;
    /**
    * 用户角色ID
    */
    @TableId
    private Long userRoleId;
    /**
    * 用户ID
    */
    private Integer userId;
    /**
    * 角色编码
    */
    private String roleCode;
    /**
    * 是否默认角色（0：非默认角色，1：默认角色
    */
    private Integer isDefault;
    /**
    * 用户角色状态（0：无效，1：有效）
    */
    private Integer userRoleStatus;


    public Long getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(Long userRoleId) {
        this.userRoleId = userRoleId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getUserRoleStatus() {
        return userRoleStatus;
    }

    public void setUserRoleStatus(Integer userRoleStatus) {
        this.userRoleStatus = userRoleStatus;
    }

}
